import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import './assets/styles/element/index.scss'
import GradientButton from './components/Button/Index.vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus, {
  locale: zhCn,
})

// 注册组件 (在挂载应用之前)
app.component('GradientButton', GradientButton)
app.component('gradient-button', GradientButton)

// 最后挂载应用
app.mount('#app')
